package com.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.MohuQueryDao;
import com.pojo.Archive;
import com.util.sqlSessionFactory;

public class MohuQueryService {
    SqlSession sql = sqlSessionFactory.getSqlSession();
    MohuQueryDao dao = sql.getMapper(MohuQueryDao.class);

	/* 模糊查询 */
    public List<Archive> mohuquery(
    		   @Param("archive_id")String archive_id,
    		   @Param("identity")String identity,
    		   @Param("name")String name,
    		   @Param("gender")String gender,
    		   @Param("birthday")String birthday,
    		   @Param("date_retire1")String date_retire1,
    		   @Param("date_retire2")String date_retire2,
    		   @Param("sp")String sp,
    		   @Param("fc")String fc,
    		   @Param("title")String title,
    		   @Param("seniority")String seniority
    		){
				return dao.mohuquery(archive_id, identity, name, gender, birthday, date_retire1, date_retire2, sp, fc, title, seniority);
    	
    }
}
